// 封装token工具包
const HMKEY = 'hm-toutiao'

function saveToken(obj) {
    localStorage.setItem(HMKEY, JSON.stringify(obj))
}
function getToken() {
    return JSON.parse(localStorage.getItem(HMKEY))
}
const removeToken = () => {
    localStorage.removeItem(HMKEY)
}
export { saveToken, getToken, removeToken }
